#!/bin/sh
ROOTPATH="/Users/quan/Documents/code/java/adsRDCode/"
MODULEPATH=$ROOTPATH$1
#ADSMERGERMODULEPATH=$ROOTPATH"adsmerger"
cd $MODULEPATH
git ls-tree -r -rz --name-only HEAD -- | xargs -0 -n1 git blame -f HEAD | sed -e 's/^.* \([0-9]\{4\}-[0-9]\{2\}\)-[0-9]\{2\} .*$/\1/g' | sort | uniq -c
#cd $ADSMERGERMODULEPATH
#echo "start adsmerge...."
#git ls-tree -r -rz --name-only HEAD -- | xargs -0 -n1 git blame -f HEAD | sed -e 's/^.* \([0-9]\{4\}-[0-9]\{2\}\)-[0-9]\{2\} .*$/\1/g' | sort | uniq -c
